package top.cdmrx.demo.cms.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import top.cdmrx.demo.cms.entity.CrmBanner;
import top.cdmrx.demo.cms.mapper.CrmBannerMapper;
import top.cdmrx.demo.cms.service.CrmBannerService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 首页banner表 服务实现类
 * </p>
 *
 * @author testjava
 * @since 2021-11-26
 */
@Service
public class CrmBannerServiceImpl extends ServiceImpl<CrmBannerMapper, CrmBanner> implements CrmBannerService {



    @Override
    public List<CrmBanner> selectList() {
        List<CrmBanner> banners = baseMapper.selectList(null);
        return banners;
    }
}
